package com.ruoyi.course.service;

import java.util.List;

import com.ruoyi.course.domain.CourseWare;
import com.ruoyi.course.domain.CourseWareComment;

/**
 * 培训课件Service接口
 *
 * @author zzx
 * @date 2023-03-29
 */
public interface ICourseWareService {
    /**
     * 查询培训课件
     *
     * @param id 培训课件主键
     * @return 培训课件
     */
    public CourseWare selectCourseWareById(Long id);

    /**
     * 查询培训课件列表
     *
     * @param courseWare 培训课件
     * @return 培训课件集合
     */
    public List<CourseWare> selectCourseWareList(CourseWare courseWare);

    /**
     * 新增培训课件
     *
     * @param courseWare 培训课件
     * @return 结果
     */
    public int insertCourseWare(CourseWare courseWare);

    /**
     * 修改培训课件
     *
     * @param courseWare 培训课件
     * @return 结果
     */
    public int updateCourseWare(CourseWare courseWare);

    /**
     * 批量删除培训课件
     *
     * @param ids 需要删除的培训课件主键集合
     * @return 结果
     */
    public int deleteCourseWareByIds(Long[] ids);

    /**
     * 删除培训课件信息
     *
     * @param id 培训课件主键
     * @return 结果
     */
    public int deleteCourseWareById(Long id);

    int insertWareQuestion(Long wareId, Long questionId);

    int deleteCourseWareQuestion(Long wareId, Long questionId);

    int insertWareComment(CourseWareComment courseWareComment);

    int deleteCourseWareComment(Long id);

    int selectCourseWareCountByTrainId(Long trainId);

    int updateWatchCountAdd(Long wareId);


}
